<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_validator = $show_scroll = $show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<h3 style="padding-left: 20px;padding-top: 10px">
<?php echo $info['order_num']?>——订单信息
<a href="javascript:history.back(-1);" style="font-size:14px;color: #0000FF"><em>返回订单列表</em></a>
</h3>
	<div class="pad-10">
			<div class="contentList pad-10">
				<table width="100%" class="table_form ">
					<tbody>
						<tr>
							<th width="200"><?php echo L('order_num')?>：</th>
							<td><?php if(!empty($info['order_num'])){echo $info['order_num'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('user_id')?>：</th>
							<td><?php if(!empty($info['user_id'])){echo $info['user_id'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('user_name')?>：</th>
							<td><?php if(!empty($info['user_name'])){echo $info['user_name'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('order_type')?>：</th>
							<td><?php if($info['order_type'] == '1'){echo '投票';}elseif($info['order_type'] == '2'){echo '商品';}elseif($info['order_type'] == '3'){echo '其他';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('status')?>：</th>
							<td><?php if($info['status'] == '1'){echo '<font color="#FF6600"><b>待支付</b></font>';}elseif($info['status'] == '2'){echo '<font color="red"><b>支付失败</b></font>';}elseif($info['status'] == '3'){echo '<font color="green"><b>已支付</b></font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('pay_type')?>：</th>
							<td><?php if($info['pay_type'] == '1'){echo '微信支付';}elseif($info['pay_type'] == '2'){echo '支付宝支付';}else{echo '其他';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('total_price')?>：</th>
							<td><?php if(!empty($info['total_price'])){echo $info['total_price'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('wechat_return')?>：</th>
							<td><?php if(!empty($info['wechat_return'])){echo '<xmp>'.$info['wechat_return'].'</xmp>';}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('order_describe')?>：</th>
							<td><?php if(!empty($info['order_describe'])){echo $info['order_describe'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('create_time')?>：</th>
							<td><?php if(!empty($info['create_time'])){echo $info['create_time'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('update_time')?>：</th>
							<td><?php if(!empty($info['update_time'])){echo $info['update_time'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
						<tr>
							<th width="200"><?php echo L('updated_by')?>：</th>
							<td><?php if(!empty($info['username'])){echo $info['username'];}else{echo '<font color="red">（未设置）</font>';}?></td>
						</tr>
					</tbody>
				</table>
			</div>
</div>
</body>
</html>
<script type="text/javascript">

function SwapTab(name,cls_show,cls_hide,cnt,cur){
	for(i=1;i<=cnt;i++){
		if(i==cur){
			 $('#div_'+name+'_'+i).show();
			 $('#tab_'+name+'_'+i).attr('class',cls_show);
		}else{
			 $('#div_'+name+'_'+i).hide();
			 $('#tab_'+name+'_'+i).attr('class',cls_hide);
		}
	}
}
</script>